package tieba.core;

import javax.servlet.http.HttpServletRequest;

import tieba.service.ICmsUserService;


public class WebUtils {

	public static String isLogin(String page,HttpServletRequest req,ICmsUserService cmsUserService){
		if(CookieUtils.isLogin(req, cmsUserService) == null)
			return "redirect:/index";
		return page;
	}
}
